.events-gallery {
  margin: 2rem auto;
}

.events-gallery h2 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--primary-text-color);
}


/* ================= GRID SYSTEM ================= */

.events-grid {
  display: grid;
  gap: 16px;                 
  margin-bottom: 3.5rem;    
}

/* Remove extra gap after last grid */
.events-grid:last-of-type {
  margin-bottom: 0;
}

/* Desktop ≥1200px → 4 columns */
@media (min-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet 768px–1199px → 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile ≤767px → 1 column */
@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}


/* ================= EVENT ITEM ================= */

.event-item {
  position: relative;
  height: 150px;              /* balanced height */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: block;
}

/* IMAGE CONTROL */
.event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

/* Hover Zoom */
.event-item:hover img {
  transform: scale(1.08);
}


/* ================= OVERLAY ================= */

.event-item .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
  circle at bottom left,
  rgba(0, 0, 0, 0.75) 0%,
  rgba(0, 0, 0, 0.35) 35%,
  rgba(0, 0, 0, 0.12) 55%,
  transparent 75%
);

  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.event-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sub-text-color);
}

/* ================= SAFETY RESET ================= */

.event-item,
.event-item:hover {
  text-decoration: none;
}
